package mycharstream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\File\\copy.png");
        FileOutputStream fos = new FileOutputStream("D:\\File\\rdu.png");
        int c;
        while ((c = fis.read()) != -1){
            fos.write(c ^ 10);
        }
        fos.close();
        fis.close();
    }
}
